.task{ class: task.options[:class], data: task.options[:data] }

  - if task.can_select?
    .task-select-field
      = check_box_tag(:check_nature, '1', false)

  - if task.colors.any?
    .task-colors
      - task.colors.each do |color|
        .task-color{style: "background-color: #{color};"}

  - if task.titles.any?
    .task-texts
      - task.titles.each do |title|
        = content_tag(:span, title[:text], :class => "task-text #{title[:class]}")
        = content_tag(:i, nil, :class => "picto picto-#{title[:icon]} #{title[:icon_class]}") unless title[:icon].nil?

  - if task.datas.any?
    = content_tag(:div, nil, :class => "task-datas") do
      - task.datas.each do |data|
        = content_tag(:div, nil, :class => "task-data #{data[:class]}", style: data[:style]) do
          - unless data[:icon].blank?
            = content_tag(:i, nil, :class => "picto picto-#{data[:icon]} #{data[:icon_class]}")
          - unless data[:text].blank?
            = content_tag(:span, data[:text], :class => "data-text #{data[:text_class]}")

  - if task.actions.any?
    .task-actions
      - task.actions.each do |action|
        = action
